package com.ruoyi.student.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.teacher.api.domain.Classes;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 班级对象 sys_class
 * 
 * @author Xsw
 * @date 2024-03-22
 */
public class SysClass extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 班级名 */
    @Excel(name = "班级名")
    private String className;

    /** 校区 */
    @Excel(name = "校区")
    private String campus;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 开班人数 */
    @Excel(name = "开班人数")
    private Long students;

    /** 开班日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开班日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结课日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结课日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 班主任 */
    @Excel(name = "班主任")
    private String charge;

    /** 就业老师 */
    @Excel(name = "就业老师")
    private String employmentTeacher;

    /** 助教老师 */
    @Excel(name = "助教老师")
    private String assistantTeacher;

    private Long campusId;
    private Long subjectId;

    private List<SysStudent> studentList=new ArrayList<>();

    public List<SysStudent> getStudentList() {
        return studentList;
    }

    public void setStudentList(List<SysStudent> studentList) {
        this.studentList = studentList;
    }

    public Long getCampusId() {
        return campusId;
    }

    public void setCampusId(Long campusId) {
        this.campusId = campusId;
    }

    public Long getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(Long subjectId) {
        this.subjectId = subjectId;
    }

    /** 版本号 */
    private Long version;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setClassName(String className) 
    {
        this.className = className;
    }

    public String getClassName() 
    {
        return className;
    }
    public void setCampus(String campus)
    {
        this.campus = campus;
    }

    public String getCampus()
    {
        return campus;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setStudents(Long students) 
    {
        this.students = students;
    }

    public Long getStudents() 
    {
        return students;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setCharge(String charge) 
    {
        this.charge = charge;
    }

    public String getCharge() 
    {
        return charge;
    }
    public void setEmploymentTeacher(String employmentTeacher) 
    {
        this.employmentTeacher = employmentTeacher;
    }

    public String getEmploymentTeacher() 
    {
        return employmentTeacher;
    }
    public void setAssistantTeacher(String assistantTeacher) 
    {
        this.assistantTeacher = assistantTeacher;
    }

    public String getAssistantTeacher() 
    {
        return assistantTeacher;
    }
    public void setVersion(Long version) 
    {
        this.version = version;
    }

    public Long getVersion() 
    {
        return version;
    }

    @Override
    public String toString() {
        return "SysClass{" +
                "id=" + id +
                ", className='" + className + '\'' +
                ", campus='" + campus + '\'' +
                ", status=" + status +
                ", students=" + students +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", charge='" + charge + '\'' +
                ", employmentTeacher='" + employmentTeacher + '\'' +
                ", assistantTeacher='" + assistantTeacher + '\'' +
                ", campusId=" + campusId +
                ", subjectId=" + subjectId +
                ", version=" + version +
                '}';
    }
}
